<template>
  <div class="page">
    <project-header></project-header>
    <create-themes ref="createThemes"></create-themes>
    <div class="main">
      <div class="left">
        <div class="left-top">
          <themes-select></themes-select>
          <mu-button class="left-new-theme-btn" @click="createNewThemes">
            <img
              src="https://image.xuexiwangzhe.com/FvTWTd9_g2pUyZk6PTr3YhrSBKWt"
              class="left-new-theme-btn-img"
            />
            <div>新建主题</div>
          </mu-button>
        </div>
        <themes-list></themes-list>
      </div>
      <div class="right"></div>
    </div>
  </div>
</template>

<script>
import projectHeader from "../../components/newProjectHeader";
import createThemes from "./components/createThemes";
import themesSelect from "./components/themesSelect";
import themesList from "./components/themesList";
export default {
  components: {
    projectHeader,
    themesSelect,
    createThemes,
  },
  methods: {
    createNewThemes() {
      this.$refs.createThemes.changeThemesDialog();
    }
  }
};
</script>

<style lang="less">
html,
body {
  width: 100%;
  height: 100%;
}

.custom-modal {
  background: #ffffff;
  box-shadow: 0px 2px 6px 0px rgba(102, 102, 102, 0.2);
  border-radius: 18px !important;
  padding: 30px !important;

  .mu-dialog-body {
    padding: 0;
  }
}

.custom-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.custom-modal-title {
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

.custom-modal-close-img {
  width: 14px;
  cursor: pointer;
}

.custom-modal-btn-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.custom-modal-btn-cancel {
  border-radius: 15px !important;
  border: 1px solid #666666 !important;
  width: 120px !important;
  height: 30px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  color: #666 !important;
  font-weight: bold;
  margin-right: 21px !important;
}

.custom-modal-btn-confirm {
  width: 120px !important;
  height: 30px !important;
  background: #265cff !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 17px !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

.custom-modal-btn-confirm-edit {
  background: #ff7632 !important;
}

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f2f4f8;
}

.main {
  flex: 1;
  display: flex;
}

.left {
  width: 302px;
  background-color: #fff;
  height: 100%;
}

.left-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 21px 0 44px;
  margin-bottom: 23px;
}

.left-new-theme-btn {
  width: 101px !important;
  height: 29px !important;
  line-height: 29px !important;
  border-radius: 3px !important;
  border: 1px solid #265cff !important;
  background-color: #fff !important;
  font-size: 12px !important;
  color: #265cff !important;
  font-weight: bold !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;

  .mu-button-wrapper {
    padding: 0 !important;
  }
}

.left-new-theme-btn-img {
  margin-right: 6px;
  width: 15px;
}

.right {
  flex: 1;
  height: 100%;
}
</style>
